package com.live.dengdengtv.activity.msg;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.live.dengdengtv.CustomTitleActivity;
import com.live.dengdengtv.R;
import com.live.dengdengtv.fragment.ChatFragment;

public class ChatRoomActivity extends CustomTitleActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.framelayout, R.layout.title_custom_red);
        setDefaultTitle("聊天消息");
        Intent intent = getIntent();
        String sendId = intent.getStringExtra(ChatFragment.C2C_ID);
        ChatFragment fragment = ChatFragment.newInstance(sendId, false);
        getSupportFragmentManager().beginTransaction()
                .add(R.id.fragment_container, fragment).commit();

    }

    @Override
    public void onClick(View v) {

    }
}
